import request from '../request'
import requestUrl from '../requestUrl'
import requestParam from '../requestParam'


export function getList (params) {
  return request({
		headers: {"token": params},
    url: requestUrl("wordlist"),
    method: 'get',
  })
}


export function addKeyWord(mess) {
    return request({
    		headers: {"token": mess.token},
        url: requestUrl(mess.url),
        method: 'post',
        data: requestParam(mess.info)
    })
}

export function deleteWord (params) {
  return request({
		headers: {"token": params.token},
    url: requestUrl("deleteword/"+params.id),
    method: 'get',
  })
}
